package com.gopay.common.domain.riskcontrol;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by Lenovo-songfengli on 2016/10/24.
 * 企业灰名单规则关系表
 */
@Entity
@Table(name="RC_RULE_GRAY_CORP_REL")
public class RcRuleGrayCorpRel extends BaseEntity implements Serializable {

    @Id
    @SequenceGenerator(name = "RC_RULE_GRAY_CORP_REL_SEQ_GENERATOR", sequenceName = "RC_RULE_GRAY_CORP_REL_SEQ", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "RC_RULE_GRAY_CORP_REL_SEQ_GENERATOR")
    @Column(name="ID")
    private Long id;

    /** 灰名单id */
    @Column(name="LIST_ID")
    private BigDecimal listId;
    /** 客户id */
    @Column(name="CUST_ID", length=10)
    private String custId;
    /** 规则编号 */
    @Column(name="CODE", length=20)
    private String code;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public BigDecimal getListId() {
        return listId;
    }

    public void setListId(BigDecimal listId) {
        this.listId = listId;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
